import http from '@/api/http';

//封装用户类型的接口方法
export class UserApi {

    // 登录
    static login(params: any) {
        console.log("123")
        return http.get('/user/login.json', params, {responseType: 'json'});
    }

    // 注册
    static regist(params: any) {
        return http.get('/user/regist.json', params, {responseType: 'json'})
    }

}